package com.gzsxy.esjy.service.base.dto.response;

import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 订单返回实体
 * @date 2022/2/17 19:41
 */
@Data
@ApiModel
public class OrderRsp extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "总价")
    private Double sumPrice;

    @ApiModelProperty(value = "状态-0待支付\\1待发货\\2已发货\\3待评论\\4已完成\\5已关闭")
    private Integer status;

    /**
     * 1.在线支付 2.货到付款
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype;
    /**
     * 1.微信 2.银行卡 3.钱包 4.支付宝
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype2;

    @ApiModelProperty(value = "用户ID（外键）")
    private String userId;

    @ApiModelProperty(value = "收货人ID（外键）")
    private String resourceId;

    @ApiModelProperty(value = "用户信息")
    private UserRsp userRsp;

    @ApiModelProperty(value = "商品列表")
    private List<OrderProductRsp> productList;

    @ApiModelProperty(value = "收货地址")
    private MatedataRsp matedataRsp;


}
